<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="../node_modules/axios/dist/axios.min.js"></script>
</head>
<body>
<button>发送请求</button>
</body>
<script type="module">
	import axios from "./myAxios.js";
	axios.defaults.baseURL = "http://zhangpeiyue.com"
	const btn = document.querySelector("button");
	btn.onclick = function () {
		// all
		const a1 = axios({
			url:"/scoreList/1"
		})
		const a2 = axios({
			url:"/scoreList/2"
		})
		axios.all([a1,a2]).then(axios.spread(function(r1,r2){
			console.log(r1,r2);
		}))
	
	}
</script>
</html>